package homework.school;

import java. util. Scanner;import org.w3c.dom.ls.LSOutput;

public class day_1008 {

    public static void main(String[] args) {

       Scanner scanner = new Scanner(System.in);
       String roster1 = scanner.nextLine();
       String roster2 = scanner.nextLine();

       System.out.println(roster1.length());
       System.out.println(roster2.length());


            if (roster2 == roster1){
                System.out.print("相同");
            }else{
                System.out.print("不相同"); };

        }

    public static void main1(String[] args) {
        int a=10,b=4,c=20,d=6;
        int result1= a + b + c + d;
        int result2= a + c % b;
        int result3= a++ * b + c * --d;

        System.out.println(result1 + " " + result2 + " " + result3);
    }

    public static void main2(String[] args) {
        int a=5,b=7;
        System.out.println((a<b)?b:a);
    }

}
